<?php

ini_set("error_reporting", E_ALL);
ini_set("display_errors", 1);

include "./af/af.class.php";

AF()->setPath('/afw/');
AF()->userInit('./');

//AF(SQL)->connect('default', AF(SQL)->PGSQL, 'localhost', 'str', '123456', 'str');

AF(SESSION)->init();

AF(WEB);

AF(ROUTER)
	->map('/', 'MainPage')
	->map('/view/%d', 'NotFound', 'text')
	->map('/view/%s', 'NotFound', 'page')
	->defaultMap('NotFound')
	->route();

?>
